//
//  GrowRecordReusableView.m
//  PigMarket
//
//  Created by mac on 2019/7/3.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import "GrowRecordReusableView.h"

@implementation GrowRecordReusableView
#pragma mark - init method
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initView];
        [self initLayout];
    }
    return self;
}

- (void)initView {
    // 添加子控件
    [self addSubview:self.dateLab];
}

- (void)initLayout {
    // 布局子控件
    [self.dateLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.centerY.mas_equalTo(self.mas_centerY);
        make.height.mas_equalTo(34);
    }];
}

#pragma mark - getter and setter
- (UILabel *)dateLab {
    if (!_dateLab) {
        _dateLab = [[UILabel alloc] init];
        _dateLab.textColor = [UIColor colorWithHexString:@"#969696"];
        _dateLab.font = [UIFont systemFontOfSize:14];
    }
    return _dateLab;
}
@end
